<div class="panel panel-default panel-intro">
    {:build_heading()}


    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in">
                <div class="widget-body no-padding">
                    <div id="toolbar" class="toolbar">
                        <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
                               <a href="javascript:;" class="btn btn-success btn-add {:$auth->check('registr_activity_user/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('新增記錄')}</a>
                    </div>
                    <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
                           data-operate-edit="{:$auth->check('registr_activity_user/edit')}" 
                           data-operate-del="{:$auth->check('registr_activity_user/del')}" 
                           width="100%">
                    </table>
                </div>
            </div>

        </div>
    </div>
</div>
<script id="customformtpl" type="text/html">
    <!--form表單必須添加form-commsearch這個類-->
    <form action="" class="form-commonsearch">
        <div style="border-radius:2px;margin-bottom:10px;background:#f5f5f5;padding:15px 20px;">
            <h4>搜索條件</h4>
            <hr>
            <div class="row">
               

                <div class="col-xs-12 col-sm-6 col-md-3">
                    <div class="form-group">
                        <label class="control-label">姓名</label>
                        <!--隱式的operate操作符，必須攜帶一個class為operate隱藏的文本框,且它的data-name="字段",值為操作符-->
                        <input class="operate" type="hidden" data-name="name" value="like"/>
                        <div>
                        <input class="form-control" type="text" name="name" placeholder="請輸入姓名" value=""/>
                        </div>
                    </div>
                </div>

              
            
                <div class="col-xs-12 col-sm-6 col-md-3">
                    <label class="control-label">來源</label>
                    <div class="form-inline" data-toggle="cxselect" data-selects="source">
           
        <input class="operate" type="hidden" data-name="source" value="="/>
                         <select  id="c-sex" class="form-control" name="source">
                             <option value="">請選擇</option>
                   <option value="0">掃碼登記</option>
                   <option value="1">手動登記</option>
            </select>

                    </div>
                </div>
                  <div class="col-xs-12 col-sm-6 col-md-3">
                    <label class="control-label">學歷</label>
                    <div class="form-inline" data-toggle="cxselect" data-selects="education">
                        <input class="operate" type="hidden" data-name="education" value="="/>  
                        <select  id="c-sex" class="form-control " name="education">
                                   <option value="">請選擇</option>
                {foreach name="eduList" item="vo"}
                    <option value="{$vo}">{$vo}</option>
                {/foreach}
            </select>
                    </div>
                </div>
                  <div class="col-xs-12 col-sm-6 col-md-3">
                    <label class="control-label">認知途徑</label>
                    <div class="form-inline" data-toggle="cxselect" data-selects="cognitive_approach">
                               <input class="operate" type="hidden" data-name="cognitive_approach" value="="/>  
                    <select  id="c-sex" class="form-control " name="cognitive_approach">
                 
                                 <option value="">請選擇</option>  
                {foreach name="cognitiveList" item="vo"}
                    <option value="{$vo}">{$vo}</option>
                {/foreach}
            </select>
                    </div>
                </div>
                  <div class="col-xs-12 col-sm-6 col-md-3">
                    <label class="control-label">是否選民</label>
                    <div class="form-inline" data-toggle="cxselect" data-selects="is_voter">
                          <select  id="c-sex" class="form-control" name="is_voter">
                             <option value="">請選擇</option>
                   <option value="1">是</option>
                   <option value="2">否</option>
            </select>

                    </div>
                </div>
                  <div class="col-xs-12 col-sm-6 col-md-3">
                    <label class="control-label">諮詢類別</label>
                    <div class="form-inline" data-toggle="cxselect" data-selects="consultation_content">
                             <input class="operate" type="hidden" data-name="consultation_content" value="="/>  
                         <select  id="c-sex" class="form-control " name="consultation_content">
                    
                                 <option value="">請選擇</option> 
                {foreach name="contentList" item="vo"}
                    <option value="{$vo.name}">{$vo.name}</option>
                {/foreach}
            </select>
                    </div>
                </div>
         


                <div class="col-xs-12 col-sm-6 col-md-3">
                    <div class="form-group">
                        <label class="control-label"></label>
                        <div class="row">
                            <div class="col-xs-6">
                                <input type="submit" class="btn btn-success btn-block" value="提交"/>
                            </div>
                            <div class="col-xs-6">
                                <input type="reset" class="btn btn-primary btn-block" value="重置"/>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </form>
</script>


